package top.lfyao.designpattern.details.adapter.exmple;

/**
 * 前锋
 */
public class Forwards extends Player {
    public Forwards(String name) {
        super(name);
    }

    @Override
    public void attack() {
        System.out.println("前锋进攻！");
    }

    @Override
    public void defense() {
        System.out.println("前锋防守");
    }
}
